package com.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.entity.Article;
import com.edu.entity.Dict;
import com.edu.vo.ArticleVo;
import com.edu.vo.Result;

import java.util.List;
import java.util.Map;

/**
 * @InterfaceName
 * @Description
 * @Author W.Jian
 * @Date 2021/5/22 12:58
 **/
public interface ArticleService extends IService<Article> {
    Result listByPage(ArticleVo articleVo);

    Result delete(Long id);

    Result updateStatus(Long id);

    Result listById(Long id);

    Result saveOrUpdateWithDict(Article article);
    /*按照分类查询所有的 文章*/
    List<Map<String, Object>> listByAll(ArticleVo articleVo);
}
